
<?php 
include __DIR__ ."../../PHP/db.php";

$e_id = $_POST['e_id'];

$result = array();
$result['status'] = true;

$phql="UPDATE employer SET e_statusid= 2
	   WHERE employer_id={$e_id}"; 

$data =  mysql_query($phql);

if( $data )
{
	$result['status'] = "true";     
	insertNotif3($e_id,"accepted_employer_signup","Your registration to flss.ph has been accepted",$href);
}
else
{
	$result['status'] = "false"; 
}

$to = getEmail($e_id);
$employer_name = getName($e_id);
$username = 

sendEmail($to,accepted($employer_name, $username, $password),"Your registration to flss.ph has been accepted");
$href = "";



echo json_encode($result);
die;

?>